export default [
  {
    path: '/',
    name: '_home',
    redirect: 'home'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/Home.vue'),
    children: [
      {
        path: '',
        redirect: 'paper'
      },
      {
        path: 'paper',
        name: 'paper',
        component: () => import('../components/Paper.vue')
      },
      {
        path: 'upload',
        name: 'upload',
        component: () => import('../components/upload.vue')
      },
      {
        path: 'paper/edit',
        name: 'paper_edit',
        component: () => import('../components/edit.vue')
      },
      {
        path: 'file',
        name: 'file',
        component: () => import('../components/file.vue')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/Login.vue')
  },
]